<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta charset="utf-8" />
<title>分类管理 - FinalCMS Admin</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

<link rel="stylesheet" href="${ctx}/css/bootstrap.min.css" />
<link rel="stylesheet" href="${ctx}/css/font-awesome.min.css" />
<link rel="stylesheet" href="${ctx}/css/jquery-ui.custom.min.css" />
<link rel="stylesheet" href="${ctx}/css/fc-fonts.css" />
<link rel="stylesheet" href="${ctx}/css/fc.min.css" />
<link rel="stylesheet" href="${ctx}/css/jquery.gritter.css" />
<!--[if lte IE 9]>
<link rel="stylesheet" href="${ctx}/css/fc-part2.min.css" />
<![endif]-->
<link rel="stylesheet" href="${ctx}/css/fc-skins.min.css" />
<link rel="stylesheet" href="${ctx}/css/fc-rtl.min.css" />

<style type="text/css">
thead th{
	align: center; 
}
.colmun-data tr{
/* 	height: 40px; */
}
.colmun-data tr td{
/*  height: 20px; */
}
</style>
<!--[if lte IE 9]>
<link rel="stylesheet" href="${ctx}/css/fc-ie.min.css" />
<![endif]-->
<!--[if lte IE 8]>
<script src="${ctx}/js/html5shiv.js"></script>
<script src="${ctx}/js/respond.min.js"></script>
<![endif]-->

<script type="text/javascript" src='${ctx}/js/jquery1.11.0.min.js'></script>
</head>

<body class="no-skin">
<?include("../../inc/menu.html",{current:"category"}){}?>
<div class="main-content">
	<div class="breadcrumbs" id="breadcrumbs">
		<script type="text/javascript">
			try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
		</script>

		<ul class="breadcrumb">
			<li><i class="ace-icon fa fa-home home-icon"></i> <a
				href="${ctx}/admin/index">首页</a></li>
			<li class="active">栏目分类</li>
		</ul>
	</div>

	<div class="page-content">
		<?include("../../inc/function.html"){}?>
		<div class="page-header">
			<h1>栏目分类</h1>
		</div>
		<!-- /.page-header -->
		<div class="row">
			<div class="searchzone">
				<table cellspacing="0" cellpadding="0" border="0" width="100%" height="30">
				 	 <tbody>
				 		 <tr>
					    	<td height="30">&nbsp;</td>
					   	 	<td align="right" colspan="2">
					   	 		<a target="_self" onclick="allshowHide('1');" href="###">全部收起</a>
					   	 	 	<a target="_self" onclick="allshowHide('0');" href="###">全部展开</a>
							    <input type="button" class="button" value="添加分类" onclick="location.href='${ctx}/admin/category/add'"> 
							    <input type="button" class="button" value="刷新" onclick="location.reload()"> 
							</td>
						 </tr>
					 </tbody>
				</table>
			</div>
			<div class="table-container col-xs-12" style=" border: 1px; padding: 5px 1px; left: 0; richness: 0;">
				<table class="table table-striped  table-hover" style="margin-bottom: 0;">
					<thead>
						<tr>
						   <th width="5%">选择</th>
						   <th width="25%">名称</th>
						   <th width="25%">别名</th>	
						   <th width="25%">链接</th>
						   <th width="20%">操作</th>			
						</tr>
					</thead>
					<tbody class="colmun-data">
						<#fc:foreach data="${list!}"; v,i>
							<tr>
								<td><input type='checkbox' name='id' class='columnNo' value='${v.id}' /></td>
								<td>${v.name}</td>
								<td>${v.alias}</td>
								<td><a target='_blank' href='url'>${v.url!""}</a></td>
								<td style='text-align: center;'>
									<a href='javascript:void(0)' class='add-childColumn' column-no='${v.column_no}'>添加子栏目</a>&nbsp;&nbsp;
									<a href='javascript:void(0)' class='edit-column' column-no='${v.column_no}'>修改</a>&nbsp;&nbsp;  
								</td>
							</tr>
							<? if(v.sub != null) {?>
								<#fc:foreach data="${v.sub!}"; v,i>
									<tr>
										<td><input type='checkbox' name='id' class='columnNo' value='${v.id}' /></td>    
										<td>----${v.name}</td>
										<td>${v.alias}</td>
										<td><a target='_blank' href='${v.url}'>${v.url!""}</a></td>
										<td style='text-align: center;'>
											<a href='javascript:void(0)' class='add-childColumn' column-no='${v.id}'>添加子栏目</a>&nbsp;&nbsp;
											<a href='javascript:void(0)' class='edit-column' column-no='${v.id}'>修改</a>&nbsp;&nbsp;  
										</td>
									</tr>
								</#fc:foreach>
							<?}?>		
						</#fc:foreach>
					</tbody>
				</table>
			</div>
	  </div>
	</div>
</div>

<?include("../../inc/footer.html"){}?>

<script type="text/javascript" src="${ctx}/js/bootstrap.min.js"></script>
<!--[if lte IE 8]>
<script type="text/javascript" src="${ctx}/js/excanvas.min.js"></script>
<![endif]-->
<script type="text/javascript" src="${ctx}/js/jquery.gritter.min.js"></script>
<script type="text/javascript" src="${ctx}/js/fc-extra.min.js"></script>
<script type="text/javascript" src="${ctx}/js/fc.min.js"></script>
<script type="text/javascript">
	if("${msg!}" != ''){
		$.gritter.add({
			title:  '提示' ,
			sticky: false, //提示框是否不消失
			text: "${msg!}",
			class_name: 'gritter-center ' + ("${msgStatus!'1'}" == '1' ? "gritter-success" : "gritter-error")
		});
    }
</script>
</body>
</html>
